import java.util.Scanner;

public class Pingfang100 {
    public static void main(String[] args) {
        int x;
        int y;
        for (x = 1;x>0 ; x++) {
            for (y = 1; y <= (x + 268) / 2; y++) {
                if (y * y == x + 100 || y * y == x + 268) {
                    System.out.println("x=" + x);
                    return;

                }
            }

        }


    }
}
